home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / os2 / plnk081.zip / pilot-link.0.8.1 / include / pi-cmp.h < prev    next >
C/C++ Source or Header  |  1997-05-23  |  692b  |  36 lines

  1. #ifndef _PILOT_CMP_H_
  2. #define _PILOT_CMP_H_
  3.  
  4. #include "pi-args.h"
  5.  
  6. #ifdef __cplusplus
  7. extern "C" {
  8. #endif
  9.  
  10. #define CommVersion_1_0 0x0100L
  11. #define CommVersion_2_0 0x0101L
  12.  
  13. struct cmp {
  14.   unsigned char type;
  15.   unsigned char flags;
  16.   unsigned int version;
  17.   int reserved;
  18.   unsigned long baudrate;
  19. };
  20.  
  21. extern int cmp_rx PI_ARGS((struct pi_socket *ps, struct cmp * c));
  22.  
  23. extern int cmp_init PI_ARGS((struct pi_socket *ps, int baudrate));
  24.  
  25. extern int cmp_abort PI_ARGS((struct pi_socket *ps, int reason));
  26.  
  27. extern int cmp_wakeup PI_ARGS((struct pi_socket *ps, int maxbaud));
  28.  
  29. extern void cmp_dump PI_ARGS((unsigned char * cmp, int rxtx));
  30.  
  31. #ifdef __cplusplus
  32. }
  33. #endif
  34.  
  35. #endif /* _PILOT_CMP_H_ */
  36.